<template>

    <div>
        <button @click="login">登录</button>
    </div>

</template>
<script> 
//组合式api
  export default {
    name: 'LoginView',
    data() {
      return {
         
      }
    },
    methods: {
      login() {
        alert('登录成功')
      }
       
    }
  }
</script>